import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useCounterStore = defineStore('counter', () => {
    const giftList = ref([
        "131.4元",
        "52元",
        "13.14元",
        "13.14元",
        "13.14元",
        "5.2元",
        "5.2元",
        "5.2元",
        "5.2元",
        "5.2元",
        "1元",
        "1元",
        "1元",
        "1元",
        "1元",
        "1元",
        "1元",
        "1元",
        "1元",
        "1元",
    ])

    const gettedGift = ref([]);

    const count = ref(3);

    return { giftList, gettedGift, count }
}, {
    persist: true,
})
